///*
// * Copyright The OpenTelemetry Authors
// * SPDX-License-Identifier: Apache-2.0
// */
//
//package com.xiashitech.agent.instrumentation.netty.netty_v4_common.client;
//
//import io.netty.channel.socket.DatagramChannel;
//import io.opentelemetry.javaagent.shaded.instrumentation.api.instrumenter.net.InetSocketAddressNetClientAttributesGetter;
//
//import javax.annotation.Nullable;
//import java.net.InetSocketAddress;
//
//import static io.opentelemetry.javaagent.shaded.io.opentelemetry.semconv.trace.attributes.SemanticAttributes.NetTransportValues.IP_TCP;
//import static io.opentelemetry.javaagent.shaded.io.opentelemetry.semconv.trace.attributes.SemanticAttributes.NetTransportValues.IP_UDP;
//
//final class NettySslNetAttributesGetter
//    extends InetSocketAddressNetClientAttributesGetter<NettySslRequest, Void> {
//
//  @Nullable
//  @Override
//  public InetSocketAddress getAddress(NettySslRequest request, @Nullable Void unused) {
//    if (request.remoteAddress() instanceof InetSocketAddress) {
//      return (InetSocketAddress) request.remoteAddress();
//    }
//    return null;
//  }
//
//  @Override
//  public String transport(NettySslRequest request, @Nullable Void unused) {
//    return request.channel() instanceof DatagramChannel ? IP_UDP : IP_TCP;
//  }
//}
